package pearson.automation.forms;

import org.openqa.selenium.By;

import framework.BaseForm;
import framework.elements.Button;
import framework.elements.Label;

public class RemoveConfirmationForm extends BaseForm {

    public static Label remove = new Label(By.xpath(
            "//h2[contains(.,'Delete this asset?')]"), "Remove label");
    public Button no = new Button(By.linkText("No"), "No");
    public Button yes = new Button(By.linkText("Yes"), "Yes");
    
    public RemoveConfirmationForm() {
        super(remove.getLocator(), "Remove");
    }
    
    public void clickYes() {
        yes.clickAndWait();
        remove.assertIsAbsent();
    }

}
